import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path';

export default defineConfig({
  plugins: [react()],
  esbuild: {
    loader: 'jsx',
    include: /src\/.*\.jsx?$/,
    exclude: []
  },
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src'), // 把 @ 指向 /src 目录
      '_C': path.resolve(__dirname, './src/components') // 也可以单独配置组件目录
    }
  }
})


